import axios from '../utils/axios.js'
//首页轮播图
export function getCarouselData (count:number) {
  return axios.get(`/foo/api/v1/img/getRotimg?nums=${count}`)
}
// 首页新品上线
export function getNewGoods (params:any) {
  return axios.post('/foo/showNewGoods',params)
}
// 首页为你推荐
export function getRecommendGoods (params:any) {
  return axios.post('/foo/showRecommendGoods',params)
}
//首页热销商品
export function getHotGoods (params:any) {
  return axios.post('/foo/showHotGoods',params)
}